STEP 18: Let's use get_time_of_day() again to see our new scene with the user's input!

  • In LOGIC, go to and drag Call w/ Parameter into Variable to the bottom of the main() function. Change my_var to new_time_of_day.
  • Change the function from my_function() to get_time_of_day().
  • Inside the parentheses, change the parameter from my_parameter to new_hour.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)